package com.edu.zut.controller;


import com.edu.zut.entity.RoleMenu;
import com.edu.zut.result.ResponseResult;
import com.edu.zut.service.RoleMenuService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 许文科
 * @since 2023-01-12
 */
@RestController
@RequestMapping("/api/role-menu")
public class RoleMenuController {

    @Resource
    private RoleMenuService roleMenuService;

    @PostMapping("/edit")
    public ResponseResult edit(@RequestBody RoleMenu roleMenu) {
        System.out.println(roleMenu);
        return roleMenuService.edit(roleMenu);
    }
}
